﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Covid.Server.Entities;

namespace Covid.Server.Services
{
    /// <summary>
    /// 员工健康 仓储接口
    /// </summary>
    public interface IDailyHealthcsRepository
    {

        /// <summary>
        /// 批量修改
        /// </summary>
        /// <param name="departmentId"></param>
        /// <param name="date"></param>
        /// <param name="dailyHealthcs"></param>
        /// <returns></returns>
        Task UpdateForDepartmentAsync(int departmentId, DateTime date, IList<DailyHealth> dailyHealthcs);


        /// <summary>
        /// 根据部门ID和时间获取部门当天所有员工的健康状态
        /// </summary>
        /// <param name="departmentId"></param>
        /// <param name="date"></param>
        /// <returns></returns>
        Task<IList<DailyHealth>> GetByDepartmentAsync(int departmentId,DateTime date);

    }
}
